// ImmKpFileInfo.cpp: implementation of the ImmKpFileInfo class.
//
//////////////////////////////////////////////////////////////////////
#define _CRT_SECURE_NO_DEPRECATE 
#include "ImmKpFileInfo.h"

//////////////////////////////////////////////////////////////////////
// Construction/Destruction
//////////////////////////////////////////////////////////////////////

ImmKpFileInfo::ImmKpFileInfo()
{
	this->bZoomActivated=FALSE;
	this->bFileUpToDate =FALSE;
	this->curIndex = 0;

	this->cMethod = 2;//0;
	this->cParams = 0.01f;

	this->funcNames	= NULL;
	this->n_func	= 0;
	this->fmax		= NULL;
	this->fmin		= NULL;
}

ImmKpFileInfo::~ImmKpFileInfo()
{

}

void ImmKpFileInfo::freeFileInfo()
{
	if(this->funcNames)
	{
		for(int i =0; i<this->n_func; i++)
		{
			free (this->funcNames[i]);
			this->funcNames[i] = NULL;
		}
		free(this->funcNames);
		this->funcNames = NULL;
	}
	if(this->fmax) 
	{
		free (this->fmax); 
		this->fmax = NULL;
	}
	if(this->fmin)
	{
		free (this->fmin); 
		this->fmin = NULL;
	}
	this->n_func = 0;
	//!!!!TODO!!!!?????? this->cur_func = 0;
}
